package com.farsoon.childcommon.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "基础实体类")
public class BaseEntity <T extends Model<?>> extends Model<T> implements Serializable {

    private static final long serialVersionUID = -1428999054577691225L;

    @ApiModelProperty(value = "主键ID", example = "1750679591587348481")
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

}
